package w10;

public class Lt2 {
	public static void main(String[] args) {
		String u = "红河学院-信息安全";
		System.out.println(u.charAt(5));
		System.out.println(u.charAt(7));
		
		System.out.println("-的位置：" + u.indexOf("-"));
		System.out.println(u.substring(5, 9));
	}

}
